home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / fgl105c.zip / 09-16.C < prev    next >
Text File  |  1991-05-06  |  644b  |  33 lines

  1. char arrow_white[] = {
  2.    0x00,0x0C,0x00, 0x00,0x0F,0x00, 0xFF,0xFC,0xC0,
  3.    0xC0,0x00,0x30, 0xFF,0xFC,0xC0, 0x00,0x0F,0x00,
  4.    0x00,0x0C,0x00
  5.    };
  6.  
  7. char arrow_black[] = {6,1,9,2,2,9,1,19,7,2,8,1};
  8.  
  9. main()
  10. {
  11.    int old_mode;
  12.  
  13.    if (fg_testmode(4,1) == 0) {
  14.       printf("This program requires a 320 ");
  15.       printf("x 200 CGA graphics mode.\n");
  16.       exit();
  17.       }
  18.  
  19.    old_mode = fg_getmode();
  20.    fg_setmode(4);
  21.  
  22.    fg_setcolor(2);
  23.    fg_rect(0,319,0,199);
  24.  
  25.    fg_move(10,10);
  26.    fg_drawmask(arrow_black,12,10);
  27.    fg_drwimage(arrow_white,3,7);
  28.    fg_waitkey();
  29.  
  30.    fg_setmode(old_mode);
  31.    fg_reset();
  32. }
  33.